'''
Created on 17/10/2011

@author: Daniel
'''
import tkMessageBox

class Email:
    def __init__(self, email):
        
        for a in email:
            if a == "@":
                self.email = email
                break
            else:
                tkMessageBox.showwarning('Mensagem do sistema', 'Email invalido, por favor insira um email valido')
                    
        
    def set_email(self, novo_email):
        self.email = novo_email
        
    def get_email(self):
        return self.email